<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateLocationsTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('locations', function(Blueprint $table) {
                    $table->increments('id');
                    $table->integer('post_id');
                    $table->integer('user_id');
                    $table->integer('place_id');
                    $table->string('house');
                    $table->string('street');
                    $table->string('sangkat');
                    $table->string('khan');
                    $table->string('city');
                    $table->string('tel');
                    $table->string('phone');
                    $table->string('email');
                    $table->string('website');
                    $table->string('lat');
                    $table->string('lng');
                    $table->timestamps();
                });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::drop('locations');
    }

}
